//
//  DetailNoRecordCell.m
//  Daybook
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "DetailNoRecordCell.h"
#import "Common.h"

@implementation DetailNoRecordCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return  self;
}

- (void)createView {
    self.titleLabel = ({
        UILabel *tempLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [CalculateFrameView setWidth:80], [CalculateFrameView setHeight:40])];
        tempLabel.center = CGPointMake(MAIN_WIDTH / 2 + [CalculateFrameView setWidth:25], [CalculateFrameView setHeight:28]);
        [self.contentView addSubview:tempLabel];
        tempLabel.textAlignment = NSTextAlignmentLeft;
        tempLabel.font = [UIFont systemFontOfSize:20];
        [tempLabel setText:@"无记录"];
        tempLabel.textColor = [UIColor lightGrayColor];
        tempLabel;
    });
    
    self.picImageView = ({
        UIImageView *tempImageView = [[UIImageView alloc] initWithFrame:CGRectMake([CalculateFrameView setWidth:150], [CalculateFrameView setHeight:12], [CalculateFrameView setWidth:38], [CalculateFrameView setHeight:35])];
        [self.contentView addSubview:tempImageView];
        tempImageView.image = [UIImage imageNamed:@"NoRecord_64.png"];
        tempImageView;
    });
}



@end
